arr = ['Java', 'VB', 'Python', 'JavaScript']

#1.正常写法
list = []
for word in arr:
	if len(word) > 5:
		list.append(word)
print(list) #['Python', 'JavaScript']

#2.列表式写法
list2 = [word for word in arr if len(word) > 5]
print(list2) #['Python', 'JavaScript']

a = [1,2,3,4]
a2 = [x+1 for x in a]
print(a2)
b = [2,3,4,5]
print(zip(a,b))
sum = [x+y for (x,y) in zip(a,b)]
print(sum)